﻿using System;

using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using ScannerApp.Forms;

namespace ScannerApp
{
    public partial class MainForm : Form
    {
        public MainForm()
        {
            InitializeComponent();
            this.Width = Screen.PrimaryScreen.WorkingArea.Width;
        }


        private void btnInStock_Click(object sender, EventArgs e)
        {
            try
            {
                InStockForm form = new InStockForm();
                form.Init();
                form.ShowDialog();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }

        private void btnOutStock_Click(object sender, EventArgs e)
        {
            try
            {
                OutStockForm form = new OutStockForm();
                form.Init();
                form.ShowDialog();

            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }

        private void btnTransferStock_Click(object sender, EventArgs e)
        {
            try
            {
                TransferStockForm form = new TransferStockForm();
                form.Init();
                form.ShowDialog();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }

        private void btnQuery_Click(object sender, EventArgs e)
        {
            try
            {
                QueryForm form = new QueryForm();
                form.Init();
                form.ShowDialog();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }

        private void btnBinding_Click(object sender, EventArgs e)
        {
            try
            {
                BindingQRForm form = new BindingQRForm();
                form.Init();
                form.ShowDialog();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }

        
    }
}